

// 初始状态，栈空
const stack = []  
// 入栈过程
stack.push('东北大板')
stack.push('可爱多')
stack.push('巧乐兹')
stack.push('冰工厂')
stack.push('光明奶砖')

while(stack.length) {
    const top = stack[stack.length-1]
    console.log('现在取出的冰激凌', top)
    stack.pop()
}

